//
//  ZHMidTFTableViewCell.m
//  DoctorFAQs
//
//  Created by zjq on 17/3/1.
//  Copyright © 2017年 zjq. All rights reserved.
//

#import "ZHMidTFTableViewCell.h"

@implementation ZHMidTFTableViewCell
- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    if (self) {
        [self initlizeInterface];
    }
    return self;
}

- (void)initlizeInterface {
    _ztitlelabel = [[UILabel alloc] init];
    _textFiled =  [[UITextField alloc] init];
    _textFiled.textColor = KHGaryColor;
    _textFiled.font = [UIFont systemFontOfSize:12];
    _textFiled.textAlignment = NSTextAlignmentRight;
    _textFiled.userInteractionEnabled = NO;
    [self.contentView addSubview:_ztitlelabel];
    [self.contentView addSubview:_textFiled];
    [_ztitlelabel mas_makeConstraints:^(MASConstraintMaker *make) {
        make.left.equalTo(self.contentView).offset(10*xsIZE);
        make.centerY.equalTo(self.contentView);
        make.width.offset(60*xsIZE);
        make.height.offset(15*ysIZE);
    }];
    [_textFiled mas_makeConstraints:^(MASConstraintMaker *make) {
        make.right.equalTo(self.contentView).offset(-10*xsIZE);
        make.height.centerY.equalTo(_ztitlelabel);
        make.width.offset(80*xsIZE);
    }];
}
- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
